package com.toKnow.mapper;

import com.toKnow.model.entity.ResourcePub;

public interface ResourcePubDao {

    int insertResource(ResourcePub resourcePub);

    ResourcePub selectResourceNumById(Integer id);

    int deleteResourceDraft(Integer draftId);
    int updateSourceDraft(ResourcePub resourcePub);

    int addResourceComment(Integer id);

    int addResourceLike(Integer id);

    int subResourceLike(Integer id);

    int insertResourceReturnId(ResourcePub resourcePub);

    int insertResourceDraftReturnId(ResourcePub resourcePub);

    Integer selectAuthor(Integer source_id);

}
